#ifndef _IDENTITYNODE_H_
#define _IDENTITYNODE_H_
#include "SimpleNode.h"

class IdentityNode: public SimpleNode
{
public:
    IdentityNode(int nodeId):
        SimpleNode(nodeId),
        _id(-999),
        _image(NULL)
    {
    }

    virtual QString type() const { return "IdentityNode"; }
    virtual ~IdentityNode()
    {
    }

    int id(){ return _id; }
    void setId(int id){ _id = id; }

    Object* image(){ return _image; }
    void setImage(Object* image){ _image = image; }


    virtual QString toString() const
    {
        return QString("IdNode[%1, %2]").arg(_id).arg(_image ? _image->toString() : "");
    }
private:
    int _id;
    Object* _image;
};

typedef QSharedPointer<IdentityNode> IdentityNodePtr;

#endif
